package com.qingzhuge.member.controller;

import com.qingzhuge.common.annotation.ASysLog;
import com.qingzhuge.common.enums.EResourceType;
import com.qingzhuge.controller.BasePkLongController;
import com.qingzhuge.core.annotation.AResource;
import com.qingzhuge.dto.response.ResponseBodyDto;
import com.qingzhuge.member.dto.request.SysUserMessageRequestDto;
import com.qingzhuge.member.dto.response.SysUserMessageResponseDto;
import com.qingzhuge.member.entity.SysUserMessage;
import com.qingzhuge.member.service.ISysUserMessageService;
import com.qingzhuge.utils.PageUtil;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zero.xiao
 * @description : 会员消息管理
 * @date :2018/6/8 0008 下午 14:49
 * @modified :
 */
@ASysLog(value = "会员消息管理")
@AResource(name = "会员消息管理", type = EResourceType.menu, catalog = "会员管理")
@Api(tags = "S会员消息")
@RestController
@RequestMapping("api/sys/auth/memberMessage")
public class SysUserMessageController extends BasePkLongController<
        SysUserMessage, ISysUserMessageService, SysUserMessageRequestDto, SysUserMessageResponseDto> {

    @Override
    public ResponseEntity<ResponseBodyDto<PageUtil<SysUserMessageResponseDto>>> queryPage(@RequestBody(required = false) SysUserMessageRequestDto message) {
        return super.queryPage(message);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysUserMessageResponseDto>> get(@PathVariable Long id) {
        return super.get(id);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysUserMessageResponseDto>> save(@RequestBody SysUserMessageRequestDto message) {
        return super.update(message);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysUserMessageResponseDto>> update(@RequestBody SysUserMessageRequestDto message) {
        return super.update(message);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<Object>> delete(@PathVariable Long id) {
        return super.delete(id);
    }
}
